package com.hxtec.polaris.service;

import com.github.pagehelper.PageInfo;
import com.hxtec.polaris.entity.ShopProductBase;
import com.hxtec.polaris.entity.ShopProductImage;
import com.hxtec.polaris.entity.ShopProductSaleAttr;

import java.util.List;

public interface ProductBaseService {

    /**
     * 根据spuId获取销售属性信息
     * @param spuId
     * @return
     */
    List<ShopProductSaleAttr> spuSaleAttrList(Integer spuId);

    /**
     * 保存spu信息
     * @param pmsProductInfo
     */
    void saveSpuInfo(ShopProductBase pmsProductInfo);

    /**
     * 获取spu图片列表
     * @param spuId
     * @return
     */
    List<ShopProductImage> spuImageList(String spuId);

    PageInfo<ShopProductBase> getSpuListInfo(Integer currentPage, Integer pageSize, String productName,String productCode,String catalogId);


}
